#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230223.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../web-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy hk-gateway "
cp ../hk-gateway/target/hk-gateway.jar ./hk/gateway/jar

echo "begin copy hk-auth "
cp ../hk-auth/target/hk-auth.jar ./hk/auth/jar

echo "begin copy hk-visual "
cp ../hk-visual/hk-monitor/target/hk-visual-monitor.jar  ./hk/visual/monitor/jar

echo "begin copy hk-modules-system "
cp ../hk-modules/hk-system/target/hk-modules-system.jar ./hk/modules/system/jar

echo "begin copy hk-modules-file "
cp ../hk-modules/hk-file/target/hk-modules-file.jar ./hk/modules/file/jar

echo "begin copy hk-modules-job "
cp ../hk-modules/hk-job/target/hk-modules-job.jar ./hk/modules/job/jar

echo "begin copy hk-modules-gen "
cp ../hk-modules/hk-gen/target/hk-modules-gen.jar ./hk/modules/gen/jar

